<?php

namespace App\Http\Controllers\admin;

use App\Dao\OrdersDao;
use App\Services\Code;

class OrdersController extends BaseController
{
    public function orders(){
        if(getIsHasPage()){
            return  Code::message('',200,OrdersDao::get_orders_page(request()->all()));
        }
        return view('admin.orders.orders',[
//            'orders'=>
        ]);
    }



    public function send_huo(){
        if(isPost()){
            OrdersDao::send_huo(request()->all());
            return Code::message('',200);
        }
        return view('admin.orders.send_huo',[
            'order_child_id'=>request('order_child_id')
        ]);
    }




}
